import javax.swing.tree.TreeNode;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 25228
 * Date: 2024-08-07
 * Time: 19:26
 */
public class Test {
    public static void main(String[] args) {
        BinaryTree binaryTree=new BinaryTree();
        BinaryTree.TreeNode root=binaryTree.createTree();
        binaryTree.preOrder(root);
        int s=0;
        binaryTree.getLeafNodeCount1(root);
        System.out.println(BinaryTree.leafSize);
        System.out.println(binaryTree.getLeafNodeCount2(root));
        System.out.println(binaryTree.getKLevelNodeCount(root,4));
        System.out.println(binaryTree.getHeight(root));
        BinaryTree.TreeNode root2=binaryTree.find(root,'c');
        System.out.println(root2.val);
        binaryTree.levelOrder(root);
        System.out.println(binaryTree.isCompleteTree(root));
    }
}
